<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2021-11-29
  Time: 9:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script>
        window.onload=function(){
            let msg = "${msg}";
            if(msg){
                document.getElementById("msgSpan").innerHTML=msg;
            }
        }
    </script>

</head>
<body>
    <div style="margin: 0 auto;width: 650px;height: 450px">
        <span style="color: red" id="msgSpan"></span>
        <h3>学生信息管理系统</h3>
        <hr>
        <form action="user/login" method="post">
            <table>
                <tr>
                    <td>用户名</td>
                    <td>
                        <input type="text" name="username">
                    </td>
                </tr>

                <tr>
                    <td>密码</td>
                    <td>
                        <input type="password" name="password">
                    </td>
                </tr>

                <tr>
                    <td colspan="2">
                        <input type="submit" value="登录">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>
